package HomeWork.HomeWork10.Cat;

/***/
public class cat extends animal{
    public cat() {
    }

    public cat(String color, int legNum) {
        super(color, legNum);
    }

    @Override
    public void eat() {
        System.out.println(getColor()+"猫猫会吃饭哦");
    }

    public void catchMouse(){
        System.out.println(getColor()+"猫猫会抓老鼠！");
    }
}
